//
// Created by Administrator on 2024/11/6.
//

#ifndef AI_PACS_FILEINSTANCEPROCESSOR_H
#define AI_PACS_FILEINSTANCEPROCESSOR_H

#include <mysql_driver.h>
#include <mysql_connection.h>
#include <cppconn/prepared_statement.h>
#include <cppconn/resultset.h>
#include <iostream>
#include "../model/client.h"
#include "../model/pool.h"
#include "../model/model.h"
#include "../constant/dicomSchema.h"
#include <format>
#include "../constant/StringUtils.h"
#include "../utils/DateUtils.h"

class FileInstanceProcessor
{
public:
    FileInstanceProcessor();
    std::vector<FileInstance> getList(std::string &hosp_code,std::string &study_instance_uid);
    bool create(const DicomStudy& study);
    bool update(std::string &request_id,std::string &hosp_code ,std::string &study_instance_uid);
private:
    ConnectionPool * pool;
};

#endif //AI_PACS_FILEINSTANCEPROCESSOR_H
